<!DOCTYPE html>
<html>
<head>
  <title>修改权限</title>
  <meta charset="UTF-8">
  <script type="text/javascript" src="__PUBLIC__/hdjs/jquery-1.11.3.min.js"></script>
  <link rel="stylesheet" href="__PUBLIC__/hdjs/hdjs.css"/>
  <script type="text/javascript" src="__PUBLIC__/hdjs/hdjs.min.js"></script>
  <link href="__PUBLIC__/css/mine.css" type="text/css" rel="stylesheet" />
</head>
<body>
  <div class="div_head">
    <span>
      <span style="float: left;">当前位置是：权限管理 >>修改权限信息</span>
      <span style="float: right; margin-right: 8px; font-weight: bold;">
        <a style="text-decoration: none;" href="{:U('addAuth')}">【添加权限】</a>
      </span>
    </span>
  </div>
  <div class="hd-w500" style="padding:20px;margin:0 auto">
    <form name="form1" method="post" action="__SELF__">
      <table class="hd-table hd-table-form hd-form">
        <thead>
        <tr><th colspan="2">修改权限</th></tr>
        <thead>
        <tr>
          <td>权限名称：</td>
          <td><input name="auth_name" type="text" class="hd-w200" value="{$current_auth.auth_name}"></td>
        </tr>
        <tr>
          <td>选中父级：</td>
          <td><select name="auth_pid" class="hd-w200">
          <option value="0">---请选择父级---</option>
          <option></option>
          <volist name='parent_auth' id='vo'>
          	<if condition="$vo['auth_id'] eq $current_auth['auth_pid']">
            	<option value="{$vo.auth_id}" selected="selected">{$vo.auth_name}</option>
            <else/>
            	<option value="{$vo.auth_id}">{$vo.auth_name}</option>
            </if>
          </volist>
          </select></td>
        </tr>
        <tr>
          <td>控制器名称：</td>
          <td><input name="auth_c" type="text" class="hd-w200" value="{$current_auth.auth_c}"></td>
        </tr>
        <tr>
          <td>方法名称：</td>
          <td><input name="auth_a" type="text" class="hd-w200" value="{$current_auth.auth_a}"></td>
        </tr>
        <tr>
          <td>是否为左菜单：</td>
          <td>
            <input type="radio" name="auth_menu" value="0" <if condition="$current_auth['auth_menu'] eq 0" >checked="checked" </if> />否
            <input type="radio" name="auth_menu" value="1" <if condition="$current_auth['auth_menu'] eq 1" >checked="checked" </if> />是
          </td>
        </tr>
        <tr>
          <td>排序：</td>
          <td><input name="auth_sort" type="text" id="auth_sort"  value="{$current_auth.auth_sort}"></td>
        </tr>
        <tr>
          <td colspan="2" align="center"><input type="submit" class="hd-btn hd-btn-default" value="提交"></td>
        </tr>
      </table>
    </form>
  </div>
</body>
</html>
